package com.imu.wys.m2ZhuJie;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;


@Component
public class Director {

    @Value("#{moAttak}")
    MoAttak moAttack;


    public void directMoive() {
        moAttack.cityGateAsk();
    }

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext3.xml");
        Director director = (Director) applicationContext.getBean("director");
        director.directMoive();
    }

}
